package cn.edu.scau.cmi.huxiantao.composite.safe;

public class SafePerson implements SafeComponent {

	private String name;
	
	public SafePerson(String name) {
		this.name=name;
	}
	
	@Override
	public String doSomething() {
		return "安全个人:"+name+"\n";
	}
	@Override
	public String getName() {
		return this.name;
	}
}
